# Uncomment (i.e. remove the `#' character at the begining of) 
# the two lines below if you want to use MPI.

# CC=mpicc
# DEFS=-DUNIX -D$(PROG) -DDEBUG -DMPI

# Comment the line below if you want to use MPI.
# Uncomment the line below if you don't want to use MPI.

DEFS = -DUNIX -D$(PROG) -DDEBUG $(REVISION)

# REVISION = $(shell if test -e .svn; then echo -DREV=\"`LC_ALL=C svn info | sed -n '/^Rev/p'| sed -e 's/^Revision:\ //'`\"; fi;)

# if WANT_PHYML
bin_PROGRAMS = phyml
PROG = PHYML

phyml_SOURCES = main.c \
utilities.c  utilities.h\
optimiz.c  optimiz.h\
lk.c  lk.h\
bionj.c bionj.h\
models.c  models.h\
free.c  free.h\
help.c  help.h\
simu.c  simu.h\
eigen.c  eigen.h\
pars.c  pars.h\
alrt.c  alrt.h\
interface.c  interface.h\
cl.c  cl.h\
spr.c spr.h\
draw.c  draw.h\
mpi_boot.c  mpi_boot.h\
stats.c stats.h\
rates.c rates.h\
mcmc.c mcmc.h\
times.c times.h\
tiporder.c tiporder.h\
mg.c mg.h\
m4.c m4.h\
bfgs.c bfgs.h\
asr.c asr.h\
annealing.c annealing.h\
eb.c eb.h
phyml_LDADD = -lm -lgsl
# endif

all-am:	intro $(bin_PROGRAMS)$(EXEEXT)
	@echo ""
	@echo "Done."

intro:	
	@echo ""
	@echo ""
	@echo ":: Building $(PROG). Version $(VERSION) ::"
	@echo ""
	@echo ""